package com.xiaoh.dormitoryrepairreportbackend.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 学生信息表
 */
@TableName(value = "user_student")
@Data
@Schema(description = "学生信息表")
public class UserStudent implements Serializable {

    /**
     * 用户ID
     */
    @TableId(value = "user_id")
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 宿舍地址
     */
    @TableField(value = "dormitory_name")
    @Schema(description = "宿舍地址")
    private String dormitoryName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
